0 REM <CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H> APPLEWAIT PROGRAM BY <CTRL-M><CTRL-M> ERNIE MERLO<CTRL-M><CTRL-M> 2415 LINCOLN AVE.<CTRL-M> BELMONT, CA. 94002<CTRL-M> (415) 595-5945<CTRL-M><CTRL-M> <CTRL-M><CTRL-M>
1 PRINT CHR$(4);"BLOAD WAIT,A$300"
2 :
3 TEXT : HOME
4 ONERR GOTO 310
5 :
6 :
7 REM <CTRL-M><CTRL-M> EDUCATION PROGRAM FOR <CTRL-M><CTRL-U><CTRL-U><CTRL-U><CTRL-U><CTRL-U> SOFTDISK MAGAZETTE<CTRL-M>
8 REM JULY 1983
9 WA = 768:C$ = CHR$(34):D$ = CHR$(4)
10 PRINT "HOW ABOUT A SMALL MACHINE LANGUAGE"
11 PRINT "SUBROUTINE TO HELP WITH YOUR PROGRAMING?"
12 PRINT : PRINT "THIS LITTLE SUBROUTINE IS CALLED "C$"WAIT"C$"."
13 PRINT C$"WAIT"C$" WILL HALT YOUR PROGRAM FOR"
14 PRINT "ANY LENGTH OF TIME AND RESUME ON ANY"
15 PRINT "KEYPRESS."
16 PRINT : PRINT C$"WAIT"C$" IS EASY TO PROGRAM AND IS"
17 PRINT "RELOCATABLE."
18 PRINT : PRINT "ONE OF THE BEST FEATURES IS THERE WILL"
19 PRINT "BE NO CURSOR BLINKING ON THE SCREEN"
20 PRINT "WHILE "C$"WAIT"C$" IS WORKING."
21 PRINT : PRINT C$"WAIT"C$" IS WORKING RIGHT NOW, DO YOU"
22 PRINT "SEE ANY CURSOR? NO!"
23 PRINT : PRINT "PRESS ANY (I DO MEAN ANY) KEY.."
24 CALL WA
25 HOME
26 PRINT "OK THERE IS ONE KEYPRESS THAT WILL"
27 PRINT "STOP "C$"WAIT"C$", RESET IS THE ONE."
28 PRINT "BUT ANY OTHER KEYPRESS, INCLUDING"
29 PRINT "CONTROL-C, WILL MOVE THE PROGRAM ALONG."
30 PRINT
31 PRINT "AS YOU KNOW CONTROL-C WILL NORMALLY"
32 PRINT "HALT A PROGRAM IN IT'S TRACKS."
33 PRINT
34 PRINT "BUT IT (CONTROL-C) WILL NOT STOP "C$"WAIT"C$
35 PRINT : PRINT "(CONTROL-C WILL STOP THIS PROGRAM"
36 PRINT "IN ANY OTHER AREA WHERE "C$"WAIT"C$" IS NOT"
37 PRINT "WORKING.)"
38 PRINT : PRINT C$"WAIT"C$" CAN BE USEFUL IF YOU ARE"
39 PRINT "SHOWING YOUR PROGRAM TO A NON-COMPUTER"
40 PRINT "USER. THERE IS NOTHING THEY CAN DO TO"
41 PRINT "HALT YOUR PROGRAM, EXCEPT RESET, AND"
42 PRINT "ANY KEYPRESS WILL MOVE THE PROGRAM TO"
43 PRINT "THE NEXT STEP."
44 PRINT : PRINT "WE ARE "C$"WAITING"C$
45 CALL WA
46 HOME
47 PRINT "BUT YOU MIGHT THINK, UGH! MACHINE "
48 PRINT "LANGUAGE, I CAN'T PROGRAM IN THAT!"
49 PRINT : PRINT "SURE YOU CAN; HERE IS THE LISTING FOR"
50 PRINT C$"WAIT"C$" .........."
51 PRINT : PRINT "AD 00 C0 10 FB 8D 10 C0 60"
52 PRINT : PRINT "NINE PAIRS OF MACHINE LANGUAGE CODE."
53 PRINT "THAT'S ALL IT TAKES TO MAKE "C$"WAIT"C$
54 PRINT : PRINT "AND I WILL SHOW YOU HOW TO ENTER THE"
55 PRINT "CODE, SAVE THE PROGRAM AND USE IT."
56 PRINT : PRINT "IF YOU NEVER PROGRAMED IN MACHINE"
57 PRINT "LANGUAGE BEFORE, THIS WILL BE A GOOD"
58 PRINT "START. YOU MACHINE LANGUAGE PROGRAMERS"
59 PRINT "MIGHT ADD THIS ROUTINE YOUR BASKET IF"
60 PRINT "YOU DON'T ALREADY HAVE A "C$"WAIT"C$" ROUTINE."
61 PRINT : PRINT "PRESS";: FLASH : PRINT "---->";: NORMAL : PRINT " ANY KEY...": CALL WA
62 HOME
63 PRINT "ONE MORE THING THAT'S NEAT ABOUT "C$"WAIT"C$","
64 PRINT : PRINT "YOU DON'T HAVE TO WASTE A LINE WITH"
65 PRINT "THE "C$"PRESS A KEY"C$" PROMPT. YOU CAN"
66 PRINT "USE ALL 24 LINES TO DISPLAY YOUR DATA."
67 PRINT
68 PRINT "AFTER THE USER IS FINISHED READING THE"
69 PRINT "SCREEN, THEY ARE BOUND TO PRESS SOME"
70 PRINT "KEY TO MOVE THE PROGRAM ALONG."
71 PRINT : PRINT "LET'S COMPARE "C$"WAIT"C$" TO SIMILAR"
72 PRINT "APPLESOFT COMMANDS AND TEST THE PRO'S"
73 PRINT "AND CON'S."
74 PRINT : PRINT "ONE WAY TO HALT AND CONTINUE A PROGRAM"
318 GET A$: PRINT : IF A$ = "" THEN PRINT CHR$(4);"RUN MENU"
319 HOME : TEXT : PRINT : PRINT CHR$(4)"RUNMENU"
320 REM <CTRL-M><CTRL-M> THANK YOU<CTRL-M> ALL ROYAL BEAGLE <CTRL-M> BERT KERSEY: WHERE EVER YOU ARE<CTRL-M> WHOM WITHOUT YOUR HELP<CTRL-M> THIS PROGRAM WOULD NOT<CTRL-M> BE POSSIBLE